	<!DOCTYPE html>
	<html lang="en">
	<head>
		<meta charset="UTF-8">
		<title>Permisos</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0">

		{% load staticfiles %} <link rel="stylesheet" href="{% static "css/spacelab.css" %}">
		{% load staticfiles %} <link rel="stylesheet" href="{% static "css/responsive.css" %}">
		{% load staticfiles %} <link rel="stylesheet" href="{% static "css/misestilos.css" %}"> 
		        {% load staticfiles %}
        <link rel="stylesheet" href="{% static "css/menu_jquery.css" %}">
	</head>
	<body>

		{% include "topmenu.html" %} <!-- Top menu -->

		<div class="container">
			<div class="row-fluid">

				{% include "sidebar.html" %} <!-- Side bar -->

				<!-- Tabla de permisos -->
				<div class="span9">	
					{% if info == 'Guardado'%}
						<p><h3>Los permisos han sido guardados</h3></p>
						<p><a href="/plataforma/permisos/">Volver</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="/plataforma">Inicio</a></p>
					{% else %}
					{% if info == 'Error'%}
						<div class="alert alert-error">
							<button type="button" class="close" data-dismiss="alert">&times;</button>
							<strong>Error!</strong> Ha ocurrido un error, compruebe sus datos e intente de nuevo                
						</div>
					{%endif%}
					<div class="page-header">
						<h1>Asignación de Permisos</h1>
					</div>

					<form action="." method="post" class="form-horizontal">{% csrf_token %}
						<table border="0" ALIGN="CENTER" WIDTH="80%" CELLPADDING="8" class="table table-striped">
							<tr ALIGN="CENTER">
							<th>Permisos</th>
							<th>Anónimo (todos)</th>
							<th>Identificado</th>
							<th>Administrador Intitucional</th>
							<th>Administrador Regional</th>
							</tr>
							
							{{permi | safe}}
		
						</table>
						
						<div align="center">
							<button type="submit" class="btn btn-primary">Aplicar</button>
						</div>

					</form>
					{%endif%}
				</div><!-- Fin span9-->
			</div> <!-- Fin row -->

		{% include "footer.html" %} <!-- Footer -->
		</div> <!-- /container -->

		<!-- JS files -->
		{% load staticfiles %} <script type="text/javascript" src="{% static "js/jquery.js" %}"></script>
		{% load staticfiles %} <script type="text/javascript" src="{% static "js/bootstrap.js" %}"></script>       
		 {% load staticfiles %} <script type="text/javascript" src="{% static "js/menu_jquery.js" %}"></script>
	</body>
	</html>
